﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 角色接口
/// </summary>
/// <typeparam name="T">要发布的消息的数据类型</typeparam>
public interface ISubject<T> {
	Action<T> PublicAction { get; set; }
}
/// <summary>
/// 观察者接口
/// </summary>
/// <typeparam name="T">接受消息的数据类型</typeparam>
public interface IObserver<T> {
	ISubject<T> Publisher { get; set; }
	void Subscriber (T data);
}